﻿<%@ Page Title="" Language="VB" MasterPageFile="~/MasterPageContent.master" AutoEventWireup="false" CodeFile="BudgetTransferHdr.aspx.vb" Inherits="BudgetTransferHdr" %>

<%@ Register src="~/UserControls/OneFilteredDropDownList.ascx" tagname="OneFilteredDropDownList" tagprefix="uc2" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="HeaderPlaceHolder" Runat="Server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">



    

    <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" >
            <AjaxSettings>
                <telerik:AjaxSetting AjaxControlID="rgBudgetTransferHdr">
                    <UpdatedControls>
                        <telerik:AjaxUpdatedControl ControlID="rgBudgetTransferHdr" LoadingPanelID="RadAjaxLoadingPanel1"/>
                    </UpdatedControls>
                </telerik:AjaxSetting>
        </AjaxSettings>
    </telerik:RadAjaxManager>
    <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" Skin="Office2010Blue" Transparency="20">
    </telerik:RadAjaxLoadingPanel>

     <telerik:RadWindowManager ID="RadWindowManager1" runat="server">  
     </telerik:RadWindowManager>

     <br /><br /><br />
     


     <telerik:RadGrid ID="rgBudgetTransferHdr" DataSourceID="odsBudgetTransferHdr" 
        CellSpacing="0" runat="server"
        AutoGenerateColumns="False" AllowSorting="True"
        Skin="Office2010Blue" AllowPaging="True" GridLines="None" >
        <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" />
        <PagerStyle Mode="NumericPages"></PagerStyle>
        <MasterTableView DataSourceID="odsBudgetTransferHdr" CommandItemDisplay="TopAndBottom" DataKeyNames="BTID"
            Width="880px" AllowMultiColumnSorting="True" GroupLoadMode="Server" NoMasterRecordsText="<%$ Resources:MainGrid , NoMasterRecordsText %>"
            NoDetailRecordsText="<%$ Resources:MainGrid , NoMasterRecordsText %>" >

    <EditFormSettings>
    <EditColumn FilterControlAltText="Filter EditCommandColumn column"></EditColumn>
    </EditFormSettings>
            <CommandItemTemplate>
                <table>
                    <tr>
                        <td>
                            <asp:ImageButton ID="ibtnInitInsert" CausesValidation="false" CommandName="Add" runat="server"
                                ImageUrl="~/Design/images/Grid/AddRecord.gif" />
                            <asp:LinkButton ID="lbtnInitInsert" CausesValidation="false" runat="server" Font-Size="14px"
                                Text="<%$ Resources:MainGrid , AddNew %>" Visible="true" CommandName="Add" />&nbsp;&nbsp;&nbsp;&nbsp;
                            <asp:ImageButton ID="ibtnEditSelected" CausesValidation="false" CommandName="Edit"
                                runat="server" ImageUrl="~/Design/images/Grid/Edit.gif" />
                            <asp:LinkButton ID="lbtnEditSelected" CausesValidation="false" runat="server" Font-Size="Medium"
                                Text="<%$ Resources:MainGrid , EditSelected %>" Visible="true" CommandName="Edit" />&nbsp;&nbsp;&nbsp;&nbsp;
                            <asp:ImageButton ID="ibtnDeleteSelected" CausesValidation="false" CommandName="DeleteSelected"
                                OnClientClick="<%$ Resources:MainGrid , OnClientClickDelete %>" runat="server"
                                ImageUrl="~/Design/images/Grid/Delete.gif" />
                            <asp:LinkButton ID="lbtnDeleteSelected" Font-Size="Medium" CausesValidation="false"
                                OnClientClick="<%$ Resources:MainGrid , OnClientClickDelete %>" runat="server"
                                Text="<%$ Resources:MainGrid , DeleteSelected %>" CommandName="DeleteSelected" />&nbsp;&nbsp;&nbsp;&nbsp;
                            <asp:ImageButton ID="ibtnRebindGrid" CausesValidation="false" CommandName="RebindGrid"
                                runat="server" ImageUrl="~/Design/images/Grid/Refresh.gif" />
                            <asp:LinkButton ID="lbtnRebindGrid" Font-Size="Medium" CausesValidation="false" runat="server"
                                Text="<%$ Resources:MainGrid , Refresh %>" CommandName="RebindGrid" />
                            <asp:Literal ID="ltrArabicSpace" meta:ResourceKey="ArabicSpace" runat="server">
                            </asp:Literal>
                        </td>
                    </tr>
                </table>
            </CommandItemTemplate>
    <CommandItemSettings ExportToPdfText="Export to PDF"></CommandItemSettings>

    <RowIndicatorColumn Visible="True" FilterControlAltText="Filter RowIndicator column"></RowIndicatorColumn>

    <ExpandCollapseColumn Visible="True" FilterControlAltText="Filter ExpandColumn column"></ExpandCollapseColumn>
            <Columns>
                <telerik:GridBoundColumn SortExpression="BTID" HeaderButtonType="TextButton" Visible="false"
                     DataField="BTID" UniqueName="BTID" >
                </telerik:GridBoundColumn>
                
                <telerik:GridBoundColumn SortExpression="BTYear" HeaderButtonType="TextButton"
                     DataField="BTYear" UniqueName="BTYear" meta:ResourceKey="gbcBTYear" >
                   <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                   <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                </telerik:GridBoundColumn>
                
                <telerik:GridBoundColumn SortExpression="BTNo" HeaderButtonType="TextButton"
                     DataField="BTNo" UniqueName="BTNo" meta:ResourceKey="gbcBTNo" >
                   <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                   <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                </telerik:GridBoundColumn>

                <telerik:GridDateTimeColumn PickerType="DatePicker" SortExpression="BTDate"
                    DataFormatString="{0:MM/dd/yyyy}" ShowFilterIcon="false"
                    HeaderButtonType="TextButton" DataField="BTDate" UniqueName="BTDate"
                    meta:ResourceKey="gbcBTDate">
                    <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                    <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                </telerik:GridDateTimeColumn>
                
                <telerik:GridBoundColumn SortExpression="Remarks" HeaderButtonType="TextButton"
                     DataField="Remarks" UniqueName="Remarks" meta:ResourceKey="gbcRemarks">
                   <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                   <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                </telerik:GridBoundColumn>

                <telerik:GridBoundColumn SortExpression="RecordStatus" HeaderButtonType="TextButton" Visible="false"
                     DataField="RecordStatus" UniqueName="RecordStatus" >
                </telerik:GridBoundColumn>

                <telerik:GridBoundColumn SortExpression="LastUpdateBy" HeaderButtonType="TextButton" Visible="false"
                     DataField="LastUpdateBy" UniqueName="LastUpdateBy" >
                </telerik:GridBoundColumn>

                <telerik:GridDateTimeColumn PickerType="DatePicker" SortExpression="LastUpdateDate"
                    DataFormatString="{0:MM/dd/yyyy}" ShowFilterIcon="false" Visible="false"
                    DataField="LastUpdateDate" UniqueName="LastUpdateDate">
                </telerik:GridDateTimeColumn>

                <telerik:GridBoundColumn SortExpression="DeleteReason" HeaderButtonType="TextButton" Visible="false"
                     DataField="DeleteReason" UniqueName="DeleteReason" meta:ResourceKey="gbcDeleteReason" >
                   <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                   <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                </telerik:GridBoundColumn>

            </Columns>
        </MasterTableView>
        <ExportSettings ExportOnlyData="true" IgnorePaging="true" OpenInNewWindow="true">
        </ExportSettings>
        <GroupingSettings CaseSensitive="false" />
        <ClientSettings EnablePostBackOnRowClick="false">
            <Selecting AllowRowSelect="True" />
        </ClientSettings>
    </telerik:RadGrid>



    

    <asp:ObjectDataSource ID="odsBudgetTransferHdr" runat="server" SelectMethod="QueryDatabase"
        TypeName="DBBudgetTransferHdrSP" DeleteMethod="QueryDatabase" 
        InsertMethod="QueryDatabase" UpdateMethod="QueryDatabase">
        <InsertParameters>
            <asp:Parameter DefaultValue="1" Name="QueryType" Type="Object" />
            <asp:Parameter DefaultValue="SaveBudgetTransferHdr" Name="Operation" Type="String" />
            <asp:Parameter Name="BTID" Type="String" />
            <asp:Parameter Name="BTNo" Type="String" />
            <asp:Parameter Name="BTYear" Type="String" />
            <asp:Parameter Name="BTDate" Type="String" />
            <asp:Parameter Name="Remarks" Type="String" />
            <asp:Parameter Name="RecordStatus" Type="String" />
            <asp:Parameter Name="LastUpdateBy" Type="String" />
            <asp:Parameter Name="LastUpdateDate" Type="String" />
            <asp:Parameter Name="DeleteReason" Type="String" />
        </InsertParameters>
        <SelectParameters>
            <asp:Parameter DefaultValue="1" Name="QueryType" Type="Object" />
            <asp:Parameter DefaultValue="RtvBudgetTransferHdr" Name="Operation" Type="String" />
            <asp:Parameter Name="BTID" Type="String" />
            <asp:Parameter Name="BTNo" Type="String" />
            <asp:Parameter Name="BTYear" Type="String" />
            <asp:Parameter Name="BTDate" Type="String" />
            <asp:Parameter Name="Remarks" Type="String" />
            <asp:Parameter Name="RecordStatus" Type="String" />
            <asp:Parameter Name="LastUpdateBy" Type="String" />
            <asp:Parameter Name="LastUpdateDate" Type="String" />
            <asp:Parameter Name="DeleteReason" Type="String" />
        </SelectParameters>
        <DeleteParameters>
            <asp:Parameter DefaultValue="1" Name="QueryType" Type="Object" />
            <asp:Parameter DefaultValue="DeleteBudgetTransferHdr" Name="Operation" Type="String" />
            <asp:Parameter Name="BTID" Type="String" />
            <asp:Parameter Name="BTNo" Type="String" />
            <asp:Parameter Name="BTYear" Type="String" />
            <asp:Parameter Name="BTDate" Type="String" />
            <asp:Parameter Name="Remarks" Type="String" />
            <asp:Parameter Name="RecordStatus" Type="String" />
            <asp:Parameter Name="LastUpdateBy" Type="String" />
            <asp:Parameter Name="LastUpdateDate" Type="String" />
            <asp:Parameter Name="DeleteReason" Type="String" />
        </DeleteParameters>
        <UpdateParameters>
            <asp:Parameter DefaultValue="1" Name="QueryType" Type="Object" />
            <asp:Parameter DefaultValue="SaveBudgetTransferHdr" Name="Operation" Type="String" />
            <asp:Parameter Name="BTID" Type="String" />
            <asp:Parameter Name="BTNo" Type="String" />
            <asp:Parameter Name="BTYear" Type="String" />
            <asp:Parameter Name="BTDate" Type="String" />
            <asp:Parameter Name="Remarks" Type="String" />
            <asp:Parameter Name="RecordStatus" Type="String" />
            <asp:Parameter Name="LastUpdateBy" Type="String" />
            <asp:Parameter Name="LastUpdateDate" Type="String" />
            <asp:Parameter Name="DeleteReason" Type="String" />
        </UpdateParameters>
    </asp:ObjectDataSource>





</asp:Content>

